<?php
/* --|-- ----- ----- ----- -----|----- ----- ----- ----- --|-- //
// Chat Server
// Project: molten-chat
// Developed by: Matthew Oltendorf
// Version: a2.1
// Updated on: August 09th, 2009
// Copyright (c) 2008-2009 Matthew Oltendorf
// --|-- ----- ----- ----- -----|----- ----- ----- ----- --|-- */

// PHP: Hypertext Preprocessor Document

/*
	Unfinished Items:
		1.
		2.
		3.
		4.
		5.
*/

/*
	Known Issues:
		1.
		2.
		3.
		4.
		5.
*/

if (
	!defined ('molten_chat')
)
	{
		die ('Unauthorised Access.');
	}

// Style: Procedural.

$caching_modules = array (
	'apc',
	'shmop',
	'xcache'
);

global $config, $table_prefix;

// Set the configuration.
molten_chat_configuration :: $cache = isset ($config ['molten_chat_cache_type']) ?
	$caching_modules [$config ['molten_chat_cache_type']] :
	null;
molten_chat_configuration :: $database = 'phpbb';
molten_chat_configuration :: $instances = isset ($config ['molten_chat_cache_connections']) ?
	(integer) $config ['molten_chat_cache_connections'] :
	2;
molten_chat_configuration :: $module = 'phpbb';
molten_chat_configuration :: $update = isset ($config ['molten_chat_cache_update']) ?
	(integer) $config ['molten_chat_cache_update'] :
	30;